package com.ttech.twitter.util;

import java.util.Set;

/**
 * User: TTACANSEVER
 */
public class TweetUtil {

    public static boolean sentenceContainsWord(String sentence, Set<String> wordSet){
        String[] words = sentence.split("\\s");
        for(String word : words) {
            if(!word.toLowerCase().contains("taksim")) {
                for(String key : wordSet) {
                    if(word.toLowerCase().contains(key)) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

}
